import logging
import time

from tools.base_page import BasePage


class  PolycenticDuiliecat(BasePage):

    def list_search(self):
        lm_name = self.find(self.only_read_yaml('../data/polycentric.yaml','lm_name'))
        self.open_yaml_element('../data/polycentric.yaml', 'search_input', content=lm_name.text)
        self.open_yaml_element('../data/polycentric.yaml','search_locator')
        search_res_lm_name = self.find(self.only_read_yaml('../data/polycentric.yaml','lm_name')).text
        try:
            if search_res_lm_name == lm_name.text:
                return True
        except:
            logging.info('未找到搜索结果')
            return False





